<template>
    <div>
        <Input placeholder="请输入相等的字符串" :value="dengyuVal"/>
    </div>
</template>

<style scoped>
</style>

<script>
export default {
    name: "ToolDengYu",
    props:{
        val: {
            type: String,
            default: '',
            required: true
        }
    },
    computed: {
        dengyuVal : function(){
            let result = '';
            if(this.val){
                let valObj = JSON.parse(this.val);
                if(valObj.equal){
                    result = valObj.equal
                }
            }
            return result;
        }
    }
};
</script>
